/**
 * @Title: UserFeignNoTokken.java
 * @Description: 用一句话描述该文件做什么
 * @author zhangxin
 * @date 2019年3月14日
 */
package com.fortune.rainshine.feign.system;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import com.fortune.rainshinecommon.model.LoginDtoModel;
import com.fortune.rainshinecommon.model.LoginParamsModel;
import com.fortune.rainshinecommon.model.system.User;

/**
 * @ClassName: UserFeignNoTokken
 * @author zhangxin
 * @date 2019年3月14日
 */
@FeignClient(value = "rain-shine-system")
@RestController
public interface UserFeignNoTokken {

	//根据key获取value
	@PostMapping("/user/getUserInfo")
	User getUserInfo(@RequestBody String account);

	//验证码登录
	@PostMapping("/user/userSmsLogin")
	LoginDtoModel userSmsLogin(@RequestBody LoginParamsModel loginParams);
}
